home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cocktail Hour
/
image.iso
/
COCKTAIL.DIR
/
00006_Script_mouseUp for lines
< prev
next >
Wrap
Text File
|
1997-03-05
|
1KB
|
37 lines
on mouseDown
--set howList="long,short,shot,hot"
global ScrollVec
set QueryFieldVec=["alco","non-alco","other","total","when","how"]
global scrollVec
setAt scrollVec, 4, 1
set n=the number of chars of the name of the member of sprite the clickOn
set CastPressed=char 7 to n of the name of the member of sprite the clickOn
set whichScroll=getPos(QueryFieldVec, CastPressed)
set ScrollPos=getat(ScrollVec,WhichScroll)
if the mouseLine>-1 then
set LinePressed=the mouseline
set choice=castPressed&(LinePressed+ScrollPos-1)
global CompVec
set x=getOne(CompVec,choice)
if x=0 then
add CompVec,choice
unity (castPressed&"Curr",choice)
set the forecolor of line linePressed of field ("query-"&castPressed)=35
else
deleteAt(CompVec,x)
dissension (castPressed&"Curr",choice)
set the forecolor of line linePressed of field ("query-"&castPressed)=204
end if
divide
HitListCheck
showCurrent
end if
end